package com.imesne.office.excel.model;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * Created by liyd on 17/7/12.
 */
public abstract class ExcelProperties {

    protected Map<String, Object> properties;

    public ExcelProperties() {
        this.properties = new LinkedHashMap<>();
    }

    public void addProperty(String name, Object value) {
        this.properties.put(name, value);
    }

    public Object getProperty(String name) {
        return this.properties.get(name);
    }

    public String getStringProperty(String name) {
        return (String) this.getProperty(name);
    }

    public Integer getIntProperty(String name) {
        return (Integer) this.getProperty(name);
    }

}
